<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cutex: cutex::QxFixPoint Klassenreferenz</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">cutex
   </div>
   <div id="projectbrief">cute Qt extensions</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Erzeugt von Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Suchen','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Suchen');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classcutex_1_1_qx_fix_point.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Öffentliche Methoden</a> &#124;
<a href="#pri-attribs">Private Attribute</a> &#124;
<a href="#pri-static-attribs">Statische, private Attribute</a> &#124;
<a href="#friends">Freundbeziehungen</a> &#124;
<a href="classcutex_1_1_qx_fix_point-members.html">Aufstellung aller Elemente</a>  </div>
  <div class="headertitle">
<div class="title">cutex::QxFixPoint Klassenreferenz</div>  </div>
</div><!--header-->
<div class="contents">

<p>QxFixPoint ist ein Datentyp zum Speichern von Festkommazahlen.  
 <a href="classcutex_1_1_qx_fix_point.html#details">Mehr ...</a></p>

<p><code>#include &lt;<a class="el" href="qxfixpoint_8h_source.html">qxfixpoint.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Öffentliche Methoden</h2></td></tr>
<tr class="memitem:ae57e4c2473de74169f46aef37e798386"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_fix_point.html#ae57e4c2473de74169f46aef37e798386">QxFixPoint</a> ()</td></tr>
<tr class="separator:ae57e4c2473de74169f46aef37e798386"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1781464d65a97fca7ecc8676a8c223df"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_fix_point.html#a1781464d65a97fca7ecc8676a8c223df">QxFixPoint</a> (double value)</td></tr>
<tr class="separator:a1781464d65a97fca7ecc8676a8c223df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09b747efceecb1bd4781215f12eed44a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_fix_point.html#a09b747efceecb1bd4781215f12eed44a">operator=</a> (double value)</td></tr>
<tr class="separator:a09b747efceecb1bd4781215f12eed44a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3814650c2bb71f9022e1c61c7c1a468"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_fix_point.html#aa3814650c2bb71f9022e1c61c7c1a468">operator double</a> () const</td></tr>
<tr class="separator:aa3814650c2bb71f9022e1c61c7c1a468"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a672ae84d17c67bca1463ec71c936a476"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_fix_point.html#a672ae84d17c67bca1463ec71c936a476">toString</a> (int decimals=DECIMALS) const</td></tr>
<tr class="separator:a672ae84d17c67bca1463ec71c936a476"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc3a69c48af34aecc20bafd4a3cc119f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcutex_1_1_qx_fix_point.html">QxFixPoint</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_fix_point.html#adc3a69c48af34aecc20bafd4a3cc119f">operator+=</a> (const <a class="el" href="classcutex_1_1_qx_fix_point.html">QxFixPoint</a> &amp;value)</td></tr>
<tr class="separator:adc3a69c48af34aecc20bafd4a3cc119f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05e7b7993227938c642b72291cb3ab4c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcutex_1_1_qx_fix_point.html">QxFixPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_fix_point.html#a05e7b7993227938c642b72291cb3ab4c">operator+</a> (const <a class="el" href="classcutex_1_1_qx_fix_point.html">QxFixPoint</a> &amp;value)</td></tr>
<tr class="separator:a05e7b7993227938c642b72291cb3ab4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attribute</h2></td></tr>
<tr class="memitem:ae4dd71aa74dc29c83e3b2841018cf4be"><td class="memItemLeft" align="right" valign="top"><a id="ae4dd71aa74dc29c83e3b2841018cf4be"></a>
qint64&#160;</td><td class="memItemRight" valign="bottom"><b>m_value</b></td></tr>
<tr class="separator:ae4dd71aa74dc29c83e3b2841018cf4be"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a>
Statische, private Attribute</h2></td></tr>
<tr class="memitem:ad03ece3da58eda922d9c910f19ca15ad"><td class="memItemLeft" align="right" valign="top"><a id="ad03ece3da58eda922d9c910f19ca15ad"></a>
static const double&#160;</td><td class="memItemRight" valign="bottom"><b>DECIMALS</b> = 5.0</td></tr>
<tr class="separator:ad03ece3da58eda922d9c910f19ca15ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Freundbeziehungen</h2></td></tr>
<tr class="memitem:a422323093aa01553cbb14b863ed92478"><td class="memItemLeft" align="right" valign="top">QDataStream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_fix_point.html#a422323093aa01553cbb14b863ed92478">operator&lt;&lt;</a> (QDataStream &amp;out, const <a class="el" href="classcutex_1_1_qx_fix_point.html">QxFixPoint</a> &amp;fp)</td></tr>
<tr class="separator:a422323093aa01553cbb14b863ed92478"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a700a52ca288631b4f7b48885c2d392af"><td class="memItemLeft" align="right" valign="top">QDataStream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_fix_point.html#a700a52ca288631b4f7b48885c2d392af">operator&gt;&gt;</a> (QDataStream &amp;in, <a class="el" href="classcutex_1_1_qx_fix_point.html">QxFixPoint</a> &amp;fp)</td></tr>
<tr class="separator:a700a52ca288631b4f7b48885c2d392af"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Ausführliche Beschreibung</h2>
<div class="textblock"><p>QxFixPoint ist ein Datentyp zum Speichern von Festkommazahlen. </p>
<p>Mit Variablen vom Typ QxFixPoint können Festkommazahlen gespeichert werden. Diese haben im Vergleich zu Gleitkommazahlen den Vorteil, das bei Berechnungen keine Differenzen durch Rundungsfehler auftreten. </p>
</div><h2 class="groupheader">Beschreibung der Konstruktoren und Destruktoren</h2>
<a id="ae57e4c2473de74169f46aef37e798386"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae57e4c2473de74169f46aef37e798386">&#9670;&nbsp;</a></span>QxFixPoint() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QxFixPoint::QxFixPoint </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Erzeugt eine neue Variable mit dem Wert 0,0. </p>

</div>
</div>
<a id="a1781464d65a97fca7ecc8676a8c223df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1781464d65a97fca7ecc8676a8c223df">&#9670;&nbsp;</a></span>QxFixPoint() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QxFixPoint::QxFixPoint </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Erzeugt eine neue Variable mit dem Wert <em>value</em>. </p>

</div>
</div>
<h2 class="groupheader">Dokumentation der Elementfunktionen</h2>
<a id="aa3814650c2bb71f9022e1c61c7c1a468"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3814650c2bb71f9022e1c61c7c1a468">&#9670;&nbsp;</a></span>operator double()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QxFixPoint::operator double </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Gibt den Wert der Variablen zurück. </p>

</div>
</div>
<a id="a05e7b7993227938c642b72291cb3ab4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05e7b7993227938c642b72291cb3ab4c">&#9670;&nbsp;</a></span>operator+()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcutex_1_1_qx_fix_point.html">QxFixPoint</a> QxFixPoint::operator+ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcutex_1_1_qx_fix_point.html">QxFixPoint</a> &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Addiert den Wert <em>value</em>. </p>

</div>
</div>
<a id="adc3a69c48af34aecc20bafd4a3cc119f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc3a69c48af34aecc20bafd4a3cc119f">&#9670;&nbsp;</a></span>operator+=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcutex_1_1_qx_fix_point.html">QxFixPoint</a> &amp; QxFixPoint::operator+= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcutex_1_1_qx_fix_point.html">QxFixPoint</a> &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Addiert den Wert <em>value</em>. </p>

</div>
</div>
<a id="a09b747efceecb1bd4781215f12eed44a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09b747efceecb1bd4781215f12eed44a">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QxFixPoint::operator= </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Setzt die Variable auf den Wert <em>value</em>. </p>

</div>
</div>
<a id="a672ae84d17c67bca1463ec71c936a476"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a672ae84d17c67bca1463ec71c936a476">&#9670;&nbsp;</a></span>toString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString QxFixPoint::toString </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>decimals</em> = <code>DECIMALS</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Gibt den Wert der Variablen als Zeichenkette zurück. </p>

</div>
</div>
<h2 class="groupheader">Freundbeziehungen und Funktionsdokumentation</h2>
<a id="a422323093aa01553cbb14b863ed92478"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a422323093aa01553cbb14b863ed92478">&#9670;&nbsp;</a></span>operator&lt;&lt;</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QDataStream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">QDataStream &amp;&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classcutex_1_1_qx_fix_point.html">QxFixPoint</a> &amp;&#160;</td>
          <td class="paramname"><em>fp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Schreibt den Wert der Variablen <em>fp</em> in den Ausgabestream <em>out</em>. </p>

</div>
</div>
<a id="a700a52ca288631b4f7b48885c2d392af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a700a52ca288631b4f7b48885c2d392af">&#9670;&nbsp;</a></span>operator&gt;&gt;</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QDataStream&amp; operator&gt;&gt; </td>
          <td>(</td>
          <td class="paramtype">QDataStream &amp;&#160;</td>
          <td class="paramname"><em>in</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classcutex_1_1_qx_fix_point.html">QxFixPoint</a> &amp;&#160;</td>
          <td class="paramname"><em>fp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Liest den Wert der Variablen <em>fp</em> aus dem Eingabestream <em>in</em>. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>cutex</b></li><li class="navelem"><a class="el" href="classcutex_1_1_qx_fix_point.html">QxFixPoint</a></li>
    <li class="footer">Erzeugt von <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
